package cn.fj.basic.mapper;

import cn.fj.basic.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

public interface BaseMapper<T> {

        //修改
        void update(T t);
        //增加
        void save(T t);

        //删除
        void remove(Long id);

        //查询全部
        List<T> loadAll();

        //查询单条
        T loadById(Long id);
        //高级查询
        Integer count(BaseQuery basequery);
        //分页
        List<T> queryData(BaseQuery basequery);

        //批量删除
        void allDelete(List<Long> ids);
    }




